package com.credithc.signature.job.service;

import com.fadada.lightapi.FDDSDKClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.PropertySource;

@Slf4j
@Configuration
@PropertySource(value = {"classpath:fadada-config.properties"})
public class FadadaSdkClient {

    private static FDDSDKClient client = null;


    /**
     * 初始化
     *
     * @return
     */
    public static FDDSDKClient initClient() {
        if (client == null) {
            return new FDDSDKClient();
        }
        return client;
    }

}
